#include <Arduino.h>

// put function declarations here:
int photocell_pin = 2;
int led_pin = 9;

void setup()
{
  // put your setup code here, to run once:
  pinMode(photocell_pin, INPUT);
  pinMode(led_pin, OUTPUT);
  Serial.begin(9600);
}

void loop()
{
  // put your main code here, to run repeatedly:
  int photocell_val = digitalRead(photocell_pin);
  Serial.print("photocell_val:");
  Serial.println(photocell_val);
  digitalWrite(led_pin, photocell_val);
}

// put function definitions here: